<?php

class models_rule
{

    private $_db;
    private $_cache;

    public function __construct($db, $cache)
    {
        $this->_db = $db;
        $this->_cache = $cache;
    }

    public function get_rules()
    {
        $result = $this->_db->query("SELECT * FROM order_tracking_rules WHERE is_display = 1", array(), FALSE);
        
        $result = $result === FALSE ? NULL : $result;
        $exce = $this->_db->getPDOException();
        if ($exce)
        {
            throw $exce;
        }
        return $result;
    }
    
    

}

?>